package com.mbl.base.modular.mall.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.mbl.base.core.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 优惠券用户使用表
 * </p>
 *
 * @author lwj
 * @since 2020-03-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mbl_mall_coupon_user")
@ApiModel(value="CouponUser对象", description="优惠券用户使用表")
public class CouponUser extends BaseEntity<CouponUser> {

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "优惠券ID")
    private Long couponId;

    @ApiModelProperty(value = "使用状态, 如果是0则未使用；如果是1则已使用；如果是2则已过期；如果是3则已经下架；")
    private Integer status;

    @ApiModelProperty(value = "使用时间")
    private LocalDateTime usedTime;

    @ApiModelProperty(value = "有效期开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "有效期截至时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "订单ID")
    private Long orderId;
}
